package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电享生活app消息表
 * </p>
 *
 * @author cfx
 * @since 2020-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DxshAppNews implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 推送用户
     */
    private Integer userId;

    /**
     * 店铺id
     */
    private Integer businessId;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 消息推送跳转code
     */
    private String code;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息类型，1：小程序通知，2：觅东东通知，3：硬件通知，4：系统通知
     */
    private Integer type;


    /**
     * 3种大的消息类型，1：订单动态，2：营销实况，3：其他通知
     */
    private Integer messageType;

//    private String merchantsAccountId;

    private Integer messageSecondType;

    private String mainTitle;


    /**
     * 推送内容（json字符串）
     */
    private String content;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime newTime;

    /**
     * 是否已读
     */
    private Integer isWatch = 0;

    /**
     * icon
     */
    private String icon;

    /**
     * 描述
     */
    private String describes;

    /**
     * 是否清空
     */
    private Integer isClear;

    /**
     * storeId
     */
    private String storeId;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String ROLE_ID = "role_id";

    public static final String CODE = "code";

    public static final String TITLE = "title";

    public static final String TYPE = "type";

    public static final String CONTENT = "content";

    public static final String UPDATE_TIME = "update_time";

    public static final String NEW_TIME = "new_time";

    public static final String IS_WATCH = "is_watch";

    public static final String ICON = "icon";

    public static final String DESCRIBES = "describes";

    public static final String IS_CLEAR = "is_clear";

//    public static final String MERCHANTS_ACCOUNT_ID = "merchants_account_id";

    public static final String MESSAGE_TYPE = "message_type";

    public static final String BUSINESS_ID = "business_id";

    public static final String STORE_ID = "store_id";

}
